package day15;


import java.io.Serializable;

/**
 *  创建Student类，设置属性name，age，gender，className。
 *  创建Students.xml文档用来保存学员姓名，年龄，性别，班级。
 *
 * @author shkstart
 * @creat 2022-05-18:29
 */

public class Student implements Serializable {
    static final long serivalVersionUID = 10L;
    private String name;
    private int age;
    private String gender;
    private String className;

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender='" + gender + '\'' +
                ", className='" + className + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }
}
